package dataImport.model;

import dataImport.model.abstracts.AbstractEntity;


public class CustomActionTemp extends AbstractEntity {

	private static final long serialVersionUID = 6983781938493082620L;

	private String commandId;

	public CustomActionTemp(final String id, final String commandId) {
		super(id);
		this.commandId = commandId;
	}

	public String getCommandId() {
		return this.commandId;
	}

	public void setCommandId(String commandId) {
		this.commandId = commandId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((this.commandId == null) ? 0 : this.commandId.hashCode());
		return result;
	}

	@Override
	public boolean equals(java.lang.Object obj) {
		if (this == obj) {
			return true;
		}
		if (!super.equals(obj)) {
			return false;
		}
		if (this.getClass() != obj.getClass()) {
			return false;
		}
		CustomActionTemp other = (CustomActionTemp) obj;
		if (this.commandId == null) {
			if (other.commandId != null) {
				return false;
			}
		}
		else if (!this.commandId.equals(other.commandId)) {
			return false;
		}
		return true;
	}

}
